package com.tianji.api.client.remark;
import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @author ffk
 * @date 2024/6/28 21:30
 */
@FeignClient(value = "remark-service", fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {

    /**
     * 根据id批量查询点赞状态
     */
    @GetMapping("/likes/list")
    public Set<Long> queryLikedStatus(@RequestParam("bizIds") Iterable<Long> bizIds);

}
